package com.tc.zigbee.mt.income;

import com.tc.util.DataUtil;
import com.tc.zigbee.entity.PowerDescriptor;

public class PowerDescriptorResponse extends IncomeMessage {
	
	public PowerDescriptor getPowerDescriptor() {
		return powerDescriptor;
	}
	byte status;
	PowerDescriptor powerDescriptor = new PowerDescriptor();
	public PowerDescriptorResponse(byte[] command) {
		int i = 0;
		byte[] ad = new byte[2];
		ad[0] = command[i++];
		ad[1] = command[i++];
		powerDescriptor.srcAddr = DataUtil.shortValue(ad);
		status = command[i++];
		ad[0] = command[i++];
		ad[1] = command[i++];
		powerDescriptor.nwkAddr = DataUtil.shortValue(ad);
		powerDescriptor.CurrentPowerMode = command[i++];
		powerDescriptor.CurrentPowerSource = command[i++];
	}

}
